package com.jweb.framework.core.service.sqlmap;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.ResultHandler;
import org.springframework.dao.DataAccessException;

public interface SqlMapSession {
	
  public <T> T queryForObject(String paramString)
    throws DataAccessException;

  public  <T> T queryForObject(String paramString, Object paramObject)
    throws DataAccessException;

  public  <T> List<T> queryForList(String paramString)
    throws DataAccessException;

  public  <T> List<T> queryForList(String paramString, Object paramObject)
    throws DataAccessException;

  public  <T> List<T> queryForList(String paramString, Object paramObject, int paramInt1, int paramInt2)
    throws DataAccessException;

  public  <K, V> Map<K, V> queryForMap(String paramString1, String paramString2)
    throws DataAccessException;

  public  <K, V> Map<K, V> queryForMap(String paramString1, Object paramObject, String paramString2)
    throws DataAccessException;

  public  <K, V> Map<K, V> queryForMap(String paramString1, String paramString2, int paramInt1, int paramInt2)
    throws DataAccessException;

  public  <K, V> Map<K, V> queryForMap(String paramString1, Object paramObject, String paramString2, int paramInt1, int paramInt2)
    throws DataAccessException;

  public  void queryWithRowHandler(String paramString, Object paramObject, ResultHandler paramResultHandler)
    throws DataAccessException;

  public  void queryWithRowHandler(String paramString, Object paramObject, int paramInt1, int paramInt2, ResultHandler paramResultHandler)
    throws DataAccessException;

  public  int insert(String paramString)
    throws DataAccessException;

  public  int insert(String paramString, Object paramObject)
    throws DataAccessException;

  public  int update(String paramString)
    throws DataAccessException;

  public  int update(String paramString, Object paramObject)
    throws DataAccessException;

  public  void update(String paramString, Object paramObject, int paramInt)
    throws DataAccessException;

  public  int delete(String paramString)
    throws DataAccessException;

  public  int delete(String paramString, Object paramObject)
    throws DataAccessException;

  public  void delete(String paramString, Object paramObject, int paramInt)
    throws DataAccessException;

  public  <T> T getMapper(Class<T> paramClass);

  public  void close()
    throws DataAccessException;

  public  void commit()
    throws DataAccessException;

  public  void rollback()
    throws DataAccessException;
	
}
